<template>
  <xtx-bread separator="/">
    <xtx-breadItem to="/">首页</xtx-breadItem>
    <xtx-breadItem :to="`/category/${subCates.parentId}`">{{
      subCates.parentName
    }}</xtx-breadItem>
    <xtx-breadItem>{{ subCates.name }}</xtx-breadItem>
  </xtx-bread>
</template>

<script>
import { inject } from 'vue'
export default {
  setup () {
    const subCates = inject('subCates')
    return { subCates }
  }
}
</script>

<style lang="less" scoped>
</style>
